//
//  SLAddLockTipVC.m
//  SlockApp
//
//  Created by 凯朱 on 2024/7/12.
//

#import "SLAddLockTipVC.h"
#import "SLAddLockScanVC.h"
@interface SLAddLockTipVC ()

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *point4TopConstraint;

@end

@implementation SLAddLockTipVC
- (void)viewDidLoad {
    [super viewDidLoad];
    [self setUpSubViews];
}

-(void)setUpSubViews{
    _videoBgVIEW.hidden = YES;
    self.title = kLocalString(@"Add new device");
    _topLbl.text = kLocalString(@"Install the battery into the lock.");
    _tipLbl1.text = kLocalString(@"Prepare a Lithium 3-volt CR2 battery. ");
    _tipLbl2.text = kLocalString(@"Remove the bottom cover with screwdriver.");
    _tipLbl3.text = kLocalString(@"Insert the battery by following the '+-' mark.");
    _tipLbl4.text = kLocalString(@"Replace the bottom cover and tighten the screws, then you are good to go.");
    _point4TopConstraint.constant = 9.6;
    _tipLbl5.hidden = YES;
    _iconLabel5.hidden = YES;
    _iconLabel1.layer.cornerRadius = 3;
    _iconLabel1.layer.masksToBounds = YES;
    _iconLabel2.layer.cornerRadius = 3;
    _iconLabel2.layer.masksToBounds = YES;
    _iconLabel3.layer.cornerRadius = 3;
    _iconLabel3.layer.masksToBounds = YES;
    _iconLabel4.layer.cornerRadius = 3;
    _iconLabel4.layer.masksToBounds = YES;
    _iconLabel5.layer.cornerRadius = 3;
    _iconLabel5.layer.masksToBounds = YES;
    
    if (kScreenHeight <= 667) {
        _topSpace.constant = 20;
        _bottomSpace.constant = 15;
    }
    _nextBtn.btnStyle = 1;
    [_nextBtn setTitle:kLocalString(@"Next") forState:UIControlStateNormal];
    
}



- (IBAction)playAction:(id)sender {
    
}

- (IBAction)nextAction:(id)sender {
    SLAddLockScanVC *vc = [[SLAddLockScanVC alloc] init];
    vc.type = 1;
    [self.navigationController pushViewController:vc animated:YES];
}


@end
